// 滚动条样式重改
::-webkit-scrollbar {
  /*滚动条整体样式*/
  width: 7px;
  /*高宽分别对应横竖滚动条的尺寸*/
  height: 7px;
}

::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/
  border-radius: 5px;
  background: var(--border-color-scrollbar-thumb);
}

::-webkit-scrollbar-track {
  /*滚动条里面轨道*/
  border-radius: 0;
  background: var(--border-color-extra-light);
}

.main {
  padding: 16px;
  background-color: #fff;
  margin: 20px;
}

.attachment_imgBox {
  width: 80px;
  height: 80px;
  text-align: center;
  cursor: pointer;
  border: dotted 1px rgba($color: #000000, $alpha: 0.1);
  background-color: rgba(0, 0, 0, 0.02);

  .attachmentImg {
    width: 74px;
    height: 74px;
    margin: 3px auto;
    object-fit: cover;
  }

  .el-icon-camera,
  .el-icon-video-camera,
  .el-icon-video-camera-solid {
    line-height: 80px;
    font-size: 20px;
    color: rgba($color: #000000, $alpha: 0.3);
  }
}

.prohibited .el-dialog__body {
  text-align: center;
}

.attachment {
  .el-dialog {
    .el-table {
      .el-table__body-wrapper.is-scrolling-none {
        height: 480px !important;
      }
    }
  }
}

//tab切换卡片样式
.tab-card.el-tabs--card {
  .el-tabs__header {
    margin-bottom: 0;
    border-bottom: 0;

    .el-tabs__nav {
      border: none;
    }

    .el-tabs__item {
      margin-right: 5px;
      background: #f7f8fa;
      border: 1px solid #e5e6e8;
      border-bottom: none;
    }

    .el-tabs__item.is-active {
      background-color: #fff;
    }
  }

  .el-tabs__content {
    padding-top: 24px;
    background-color: #fff;
  }
}

//选择附件按钮
#app {
  .el-tabs__active-bar {
    background-color: var(--huocms-com-color-primary);
  }

  .el-tabs__nav-wrap::after {
    height: 1px;
  }

  .attachmentBtn {
    display: flex;
    margin-bottom: 15px;

    .avatar-uploader {
      margin-right: 15px;
    }
  }

  .imgBox {
    width: 200px;
    height: 140px;
    border-radius: 5px;
    border: solid 1px #dcdfe6;
    position: relative;

    .attachmentImg {
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      max-width: 180px;
      max-height: 120px;
    }
  }

  .attachment .el-dialog {
    height: 600px;
    border-radius: 0;

    .el-dialog__header {
      border-radius: 0 !important;
      padding-bottom: 20px;
    }

    .el-dialog__body {
      padding: 0 20px;
      height: 500px;
    }

    .el-table {
      .attachmentImg {
        width: 60px;
        height: 60px;
      }
    }
  }
}

#app .el-form .btn {
  text-align: center;
}

#app .main-container {
  background: #f6f9fc;
}

.container {
  padding: 20px 16px;
  background-color: #f6f9fc;
  margin-bottom: 40px;

  .search {
    margin-bottom: 20px;
    padding: 20px 30px 0px;
  }
}

* {
  margin: 0;
  padding: 0;
}

.el-dropdown-menu {
  padding: 0;
}

.el-dropdown-menu__item--divided {
  border-top: none;
  height: 30px;
}

.el-dropdown-menu__item--divided:before {
  display: none;
  margin-top: 0;
}

.el-dropdown-menu__item {
  height: 40px;
  line-height: 40px;
}

/*table表格*/
#app {

  .el-table thead tr,
  .el-table thead th {
    font-weight: normal;
    color: #000;
    background-color: #f7f8fa;
  }

  .el-table .el-table__cell {
    padding: 9px 0;
  }

  .el-table--border td,
  .el-table--border th,
  .el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
    border-right: 1px solid #e1e4ea;
  }
}

/*弹窗的遮罩层*/
.v-modal {
  background-color: rgb(43, 54, 72);
  opacity: 0.3;
}

.el-button+.el-button {
  margin-left: 20px;
}

.el-button.el-icon-edit,
.el-button.el-icon-delete {
  font-weight: 600;
}

/*上下结构表单*/
.el-form-item__label {
  color: var(--suq-cn-color-title);
}

.el-form--label-top {
  .el-form-item {
    margin-bottom: 16px;
  }

  .el-form-item__label {
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: 400;
    line-height: 22px;
    padding-bottom: 8px;
  }

  .el-form-item__content {
    line-height: 32px;
  }
}

.tabs-white {
  .el-tabs__content {
    padding: 16px;
    background-color: #fff;
  }
}

/*两列表单样式*/
.flexForm {
  display: flex;
  flex-wrap: wrap;
  width: 95%;

  .left,
  .right {
    width: calc(50%);

    .el-form-item {
      width: calc(100% - 80px);
    }
  }

  .el-form-item {
    width: calc(50% - 80px);
    margin-right: 80px;

    .el-radio-group {
      line-height: 32px;
    }

    .el-select,
    .el-date-editor {
      width: 100%;
    }
  }

  .row,
  .row.el-form-item {
    width: 100%;
  }
}

.main-box {
  margin: 20px 20px 40px;
  background-color: #fff;
  padding: 16px;
}

/*列表上方 button*/
.el-button--secondary {
  border: solid 1px var(--huocms-com-color-primary);
  color: var(--huocms-com-color-primary);
}